// 引入axios | 路径配置
import { AJAX_PATH } from "@/services/config.js";

// 导入 封装的 有权限请求2
import { HTTP_LIMITED } from "@/utils/axios.js";
class ChanChengPinRuKuHttp extends HTTP_LIMITED {
  //出入库货架批量保存
  saveSelectShelvesByShedId(data) {
    return this._post(AJAX_PATH.saveSelectShelvesByShedId, data);
  }
  //仓库-仓库结转详情按钮，修改表头-上table -  用于状态审核开启关闭标志位修改
  updatebacteriawarehousecarryover(data) {
    return this._post(AJAX_PATH.updatebacteriawarehousecarryover, data);
  }
  //更新订单关闭-下table -  用于状态审核开启关闭标志位修改
  updateClosedbacteria(data) {
    return this._post(AJAX_PATH.updateClosedbacteria, data);
  }
  //获取单据号
  //   getDocumentNo() {
  //     return this._post(AJAX_PATH.getWarehouseDocumentNo, {});
  //   }

  //仓库-仓库结转详情按钮，这个详情查出来的是中间的表格
  getMiddleListdetail(data) {
    return this._get(AJAX_PATH.getMiddleListdetail + data);
  }
  //获取批次号
  getBatchNumber() {
    return this._get(AJAX_PATH.getBatchNumber, {});
  }
  //获取货架
  getSelectShelvesByShedId() {
    return this._get(AJAX_PATH.getSelectShelvesByShedId, {});
  }
  //获取订单编号
  /*   getApplyOrder() {
      return this._post(AJAX_PATH.getOrder, {});
    } */
  //获取承包户列表
  getContractorList() {
    return this._get(AJAX_PATH.getContractorList);
  }
  //获取供应商列表信息
  getSupplierList() {
    return this._get(AJAX_PATH.getSupplierList, {});
  }
  //获取收发类别列表
  getReceiveSendTypeList() {
    return this._get(AJAX_PATH.getReceiveSendTypeList, {});
  }
  //获取采购入库单据号列表信息
  getDocumentList(queryPath) {
    return this._get(AJAX_PATH.getDocumentList + queryPath);
  }
  //获取仓位列表信息
  getPositionList() {
    return this._get(AJAX_PATH.getPositionList, {});
  }
  getStorageGoodsList(queryPath) {
    return this._get(AJAX_PATH.getStorageGoodsList + queryPath);
  }
  // 通过id获取入库订单信息
  getInStorageInfoById(queryPath) {
    return this._get(AJAX_PATH.getInStorageInfoById + queryPath);
  }
  // 入库单
  InOrOutStorageOrder(data) {
    return this._post(AJAX_PATH.InOrOutStorageOrder, data);
  }
  // 备货通知申请
  StockNoticeSave(queryPath, data) {
    return this._post(AJAX_PATH.StockNoticeSave + queryPath, data);
  }

  // 更新入库单
  updateInOrOutStorageOrder(data) {
    return this._post(AJAX_PATH.updateInOrOutStorageOrder, data);
  }
  // 删除入库单
  deleteInOrOutStorageOrder(queryPath) {
    return this._get(AJAX_PATH.deleteInOrOutStorageOrder + queryPath);
  }

  // 出库物品信息
  InOrOutStorageGoods(data) {
    return this._post(AJAX_PATH.InOrOutStorageGoods, data);
  }
  // 获取入库列表
  getInOrOutStorageList(queryPath) {
    return this._get(AJAX_PATH.getInOrOutStorageList + queryPath);
  }
  // 获取入库列表
  getInOrOutStorageOrderList(queryPath) {
    return this._get(AJAX_PATH.getInOrOutStorageOrderList + queryPath);
  }
  //获取存货名称列表
  getGoodsList() {
    return this._get(AJAX_PATH.getGoodsList, {});
  }
  // 更新入库物品信息
  updateInOrOutStorageGoods(data) {
    return this._post(AJAX_PATH.updateInOrOutStorageGoods, data);
  }
  //获取采购入库根据源单生成列表
  getPurchaseStorageList() {
    return this._get(AJAX_PATH.getPurchaseStorageList, {});
  }
  //获取采购订单详情
  getPurchaseStorageInfo(queryPath) {
    return this._get(AJAX_PATH.getPurchaseStorageInfo + queryPath);
  }
  //获取根据源单生成(结转单)列表
  getCarryOverList() {
    return this._get(AJAX_PATH.getCarryOverList, {});
  }
  //获取结转单详情
  getCarryOverInfo(queryPath) {
    return this._get(AJAX_PATH.getCarryOverInfo + queryPath);
  }

  // 产成品入库根据源单生成的接口
  getChanChengPinYuanDanList(queryPath = '') {
    return this._get(AJAX_PATH.getChanChengPinYuanDanList + queryPath)
  }
}
export { ChanChengPinRuKuHttp };
